
public class RobotDance extends Thread{
    Robot robot;

    public RobotDance(Robot r){
        robot = r;
    }
    public void run(){


//1  Moved to another position
//          robot.moveEast(50);

//2  Moving to another position

        try {
            sleep(1000);
            int n = 1;

            for(;n<40;n++) {

                robot.moveWest(4);
                robot.moveSouth(5);

                sleep(50);

            }
        } catch (InterruptedException e) {
            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
        }

//3   Your dance here

    }
}
